package com.xiaotu.server.controller;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xiaotu.common.util.PropertiesUtil;

@RequestMapping("/baseController")
@RestController
public class BaseController
{
	private static final Logger LOGGER = LoggerFactory
			.getLogger(BaseController.class);
	
	@RequestMapping(value = "/forward")
	public Object forward(HttpServletRequest request)
	{
		LOGGER.info("controller test");
		LOGGER.info(PropertiesUtil.getProperty("redis.host"));
		return "success";
	}
}
